import { App } from 'vue';
import { Breadcrumb, Button, Input, Layout, Menu, Tabs } from 'ant-design-vue';

const components = [
  Button,
  Input,
  Layout,
  Menu,
  Tabs,
  //不是直接加入LayoutHeader
  Layout.Header,
  Layout.Sider,
  Layout.Content,
  Layout.Footer,
  Menu.Item,
  Menu.SubMenu,
  Breadcrumb,
  Breadcrumb.Item,
  Menu.ItemGroup,
];

//挂载方式是以组件名的形式挂载
export default function (app: App): void {
  for (const component of components) {
    app.component(component.name, component);
  }
}
